import java.util.Scanner;

public class publica {
    static String[] Bookpublics = new String[10];
    static int pub = 0;

    public void insert() {
        System.out.println("请输入图书出版社名字");
        Scanner scanIA = new Scanner(System.in);
        String aA = scanIA.next();
        pub++;
        if (pub < Bookpublics.length) {
            Bookpublics[pub] = aA;
            System.out.println("添加成功!!!");
        }

    }
    public void delete(){
        System.out.println("请输入你要删除的开发商");
        Scanner scanOA = new Scanner(System.in);
        String scan1A = scanOA.next();
        for (int i = 0; i < Bookpublics.length; i++) {
            if (scan1A.equals(Bookpublics[i])) {
                Bookpublics[i] = "  ";
                System.out.println("删除成功");
            }
        }
    }
    public void update(){
        System.out.println("请输入新图书出版社");
        Scanner s5A = new Scanner(System.in);
        String a5A = s5A.next();
        for (int i = 0; i < Bookpublics.length; i++) {
            if (a5A.equals(Bookpublics[i])) {
                System.out.println("输入新出版社");
                Scanner AWS=new Scanner(System.in);
                String awsS=AWS.next();
                awsS = Bookpublics[i];
                System.out.println("更新成功");

            }
        }
    }
    public void inquires(){
        System.out.println("出版社");
        for (int i = 0; i < Bookpublics.length; i++) {
            System.out.println(Bookpublics[i]);
        }
    }
    public void inquire(){
        Scanner aaaa3A = new Scanner(System.in);
        String AAAA4A = aaaa3A.next();
        for (int i = 0; i < Bookpublics.length; i++) {
            if (AAAA4A.equals(Bookpublics[i])) {
                System.out.println("出版社");
                System.out.println(Bookpublics[i]);
            }
        }
    }
}
